﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Radar.Navigation;
using Jage.Utils;

namespace Radar
{
    public class MapFactory
        : SingletonBase<MapFactory>
    {

        public Map CreateMap(MapDefinition definition)
        {
            Map map = new Map();
            map.Width = definition.Width;
            map.Height = definition.Height;
            map.NavMesh = NavMeshFactory.Instance.CreateNavMesh(definition.NavMesh, definition.Grid);
            return map;
        }

    }
}
